//
//  DKULoginHttp.m
//  DanKU
//
//  Created by 吴斌 on 2023/10/1.
//

#import "DKULoginHttp.h"

@implementation DKULoginHttp
//登录(短信登录/密码登录)
+(void)apiUserLoginForAPI:(NSDictionary *)param complete:(void(^)(void))complete{
    [[DKHttpHelper request] POST:[NSString getServiceUrl:DK_UserLogin] params:param withJson:YES withIsLoad:YES success:^(NSInteger status, id  _Nonnull data) {
        NSDictionary *dkRegisterUserDic = [data objectForKey:@"data"];
        DKRegisterUserModel *dkRegisterUserMdl = [DKRegisterUserModel mj_objectWithKeyValues:dkRegisterUserDic];
        [DKGlobalHelper saveRegisterUserInfo:dkRegisterUserMdl];
        complete();
    }failure:^(NSInteger status, NSString * _Nonnull msg) {
        
    }];
}
@end
